<!--%import("css/xedocs.css")-->
<!--%import("css/robohelp.css")-->
<!--%import("js/manual.js")-->
<!--%import("js/xedocs.js")-->
<!--%import("js/show_hide_div.js")-->

<!--@if(!$module_info->colorset)-->
    {@$module_info->colorset = "white"}
<!--@end-->

{$module_info->header_text}

<div class="wiki">
    <div class="wikiHeader" style='color="red";'>
		<!--@if($module_info->title)-->
		<div class="wikiTitle">
			<h2 class="wikiTitleText">
	      <a href="{getUrl('','mid',$mid,'listStyle',$listStyle)}">{$module_info->title}
                <!--@if($module_info->sub_title)--> : <em>{$module_info->sub_title}</em><!--@end--></a></h2>
		</div>
		<!--@end-->

		<!--@if($module_info->comment)-->
		<p class="wikiDescription">{$module_info->comment}</p>
		<!--@end-->
    </div>

 
    </div>
   

    <!--@if($oDocument && $oDocument->isExists())-->
    <div class="wikiRead">
        <div class="wikiReadHeader">
            <div class="titleArea">
                <h3 class="title"><a href="{$oDocument->getPermanentUrl()}">{$oDocument->getTitle()}</a></h3>
                <span class="sum">
                    <span class="read">{$lang->readed_count} <span class="num">{$oDocument->get('readed_count')}</span></span>
                    <span class="vote">{$lang->voted_count} <span class="num">{$oDocument->get('voted_count')}</span></span>
                    <span class="date">
                        <!--@if($history)-->
                        <strong>{zdate($history->regdate, 'Y.m.d')}</strong> {zdate($history->regdate, 'H:i:s')}
                        <!--@else-->
                        <strong>{$oDocument->getUpdate('Y.m.d')}</strong> {$oDocument->getUpdate('H:i:s')} 
                        <!--@end-->
                    </span>
                </span>
            </div>

    <!--@if($visit_log)-->
    <div class="visitLog">
        {@ $bFirst = true; }
        <!--@foreach($visit_log as $_entry)-->
            <!--@if(!$bFirst)--> > <!--@else-->{@ $bFirst = false; }<!--@end--> <a href="{getUrl('entry',$_entry,'document_srl','')}">{$_entry}</a>
        <!--@end-->
    </div>
    <!--@end-->

            <div class="authorArea"  >
	      <div style='visibility:hidden;'>
                <!--@if($history)-->
                    <a href="#" class="author member_{$history->member_srl}" onclick="return false;">{$history->nick_name}</a>
                <!--@else-->
                    <!--@if(!$oDocument->getMemberSrl())-->
                        <!--@if($oDocument->isExistsHomepage())-->
                            <a href="{$oDocument->getHomepageUrl()}" onclick="window.open(this.href);return false;" class="author">{$oDocument->getNickName()}</a>
                        <!--@else-->
                            {$oDocument->getNickName()}
                        <!--@end-->
                    <!--@else-->
                        <a href="#popup_menu_area" class="member_{$oDocument->get('member_srl')} author" onclick="return false">{$oDocument->getNickName()}</a>
                    <!--@end-->
                <!--@end-->

                <span class="ipAddress"><!--@if($grant->manager || $module_info->display_ip_address!='N')-->{$oDocument->getIpaddress()}<!--@end--></span>
	      </div>

                <!--@if(!$history && ($oDocument->isExists()||$use_history != 'N'))-->
                <div class="command" >
                    <!--@if($oDocument->isExists()&&$act!='dispXedocsEditPage'&&$grant->manager)-->
                        <SPAN class="buttonOfficial"><a href="{getUrl('act','dispXedocsEditPage','entry',$entry)}">{$lang->cmd_edit}</a></span>
                    <!--@end-->
                    <!--@if($oDocument->isExists()&&$grant->delete_document && $oDocument->get('title')!='Front Page')-->
                        <span class="buttonOfficial"><a href="#" onclick="if(confirm('{$lang->confirm_delete}')) { doDeleteManual('{$oDocument->document_srl}'); }; return false;">{$lang->cmd_delete}</a></span>
                    <!--@end-->
                    <!--@if($use_history != 'N')-->
                        <span class="buttonOfficial"><a href="{getUrl('act','dispXedocsHistory','document_srl',$oDocument->document_srl,'history_srl','')}">Histories</a></span>
                    <!--@end-->
                </div>
                <!--@else-->
                <div class="command">
                    <!--@if($history)-->
                        {$lang->notice_old_revision}
                    <!--@end-->
                    <span class="buttonOfficial"><a href="{getUrl('act','','history_srl','')}">{$lang->cmd_back}</a></span>
                </div>
                <!--@end-->
            </div>
        </div>
    </div>
    <!--@elseif($entry)-->
    <div class="wikiRead">
        <div class="wikiReadHeader">
            <div class="titleArea">
                <h3 class="title">{$entry}</h3>
            </div>
        </div>
    </div>
    <!--@if($visit_log)-->
    <div class="visitLog">
        {@ $bFirst = true; }
        <!--@foreach($visit_log as $_entry)-->
            <!--@if(!$bFirst)--> > <!--@else-->{@ $bFirst = false; }<!--@end--> <a href="{getUrl('entry',$_entry)}">{$_entry}</a>
        <!--@end-->
    </div>
    <!--@end-->
    <!--@end-->
